<%= will_paginate people, :inner_window => 5, :outer_window => 5 %>

<table  width=690 border='1' style="border: solid black 1px; margin:10px;">
	<tr>
	    <th>Osoba</th>
	    <th>Miasto</th>
	    <th>Telefon</th>
	    <th>E-mail</th>
	    <th>Uwagi</th>
		<th colspan=3>Akcje</th>
	</tr>

	<% for person in people %>
	  <tr>
	    <td> <%=h person.last_name %> <%=h person.first_name%> </td>
	    <td><%=h person.city ? person.city.name : '' %></td>
	    <td><%=h person.phone %></td>
			<td><%= mail_to person.email, person.email  %></td>
	    <td><%=h truncate person.comment, 20 %></td>
	    <td><%= link_to 'S', admin_person_path(person) %></td>
	    <td><%= link_to 'E', edit_admin_person_path(person) %></td>
	    <td><%= link_to 'D', admin_person_path(person), :confirm => 'Na pewno usunąć dane wybranej osoby z systemu?', :method => :delete %></td>
	  </tr>
	<% end %>
</table>

<%= will_paginate people, :inner_window => 5, :outer_window => 5 %>